package org.xiaov.framework.component.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaovcloud
 * @since 2021/5/19 21:39
 */
@Component
@ConfigurationProperties(prefix = "v.upload.oss")
@Getter
@Setter
public class UploadOssProperties {
    /**
     * 上传阿里云地址
     */
    private String endpoint;
    /**
     * 访问控制账号
     */
    private String accessKeyId;
    /**
     * 访问控制密码
     */
    private String accessKeySecret;
    /**
     * 创建的bucket名
     */
    private String bucketName;
    /**
     * 存放的文件夹
     */
    private String fileHost;

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getFileHost() {
        return fileHost;
    }

    public void setFileHost(String fileHost) {
        this.fileHost = fileHost;
    }
}
